import {
  GraphQLList,
  GraphQLObjectType,
  GraphQLSchema,
  GraphQLString,
  GraphQLInt,
  GraphQLFloat,
  GraphQLEnumType,
  GraphQLNonNull
} from 'graphql';

export default new GraphQLObjectType({
  name: 'Strategy',
  description: '量化策略描述',
  fields: {
    name: {
      type: new GraphQLNonNull(GraphQLString),
      description: '股票代码'
    },
    description: {
      type: GraphQLString,
      description: '量化策略描述'
    },
    entity: {
      type: GraphQLString,
      description: '量化策略具体内容'
    }
  }
})
